// .pull-wrapper {
//     position: relative;

//     .pull-header {
//         position: absolute;
//         top: 0;
//         left: 0;
//         right: 0;
//         height: 50px;
//         line-height: 50px;
//         text-align: center;
//         background-color: #f5f5f5;
//     }
// }
// 下拉刷新组件样式
.pull-wrapper {
    position: relative;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.pull-header {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    z-index: 10;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pull-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.pull-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    // 释放状态 - 图标旋转180度
    &-release {
        transform: rotate(180deg);
    }

    // 刷新状态 - 图标持续旋转
    &-refreshing {
        transform: rotate(360deg);
        transition: transform 1s linear infinite;
    }
}

.pull-text {
    font-weight: 500;
    user-select: none;
}

.content-wrapper {
    min-height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

// 演示组件样式
.demo-container {
    height: 100vh;
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.demo-header {
    padding: 20px;
    background-color: #007bff;
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.demo-tip {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.demo-content {
    height: 200px;
    border-bottom: none;
}

.demo-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.demo-list-item {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    background-color: #fff;
    font-size: 16px;
    transition: background-color 0.2s ease;

    &:hover {
        background-color: #f8f9fa;
    }

    &:last-child {
        border-bottom: none;
    }
}

// 响应式设计
@media (max-width: 768px) {
    .pull-header {
        height: 50px;
        top: -50px;
    }

    .pull-content {
        font-size: 13px;
        gap: 6px;
    }

    .pull-icon {
        width: 18px;
        height: 18px;
    }

    .demo-header {
        padding: 15px;
        font-size: 16px;
    }

    .demo-list-item {
        padding: 14px 16px;
        font-size: 15px;
    }

    .demo-tip {
        padding: 15px;
        font-size: 13px;
    }
}

// 深色模式支持
@media (prefers-color-scheme: dark) {
    .pull-wrapper {
        background-color: #1a1a1a;
    }

    .pull-header {
        background-color: #2d2d2d;
        border-bottom-color: #404040;
    }

    .pull-content {
        color: #a0a0a0;
    }

    .demo-container {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .demo-header {
        background-color: #0056b3;
    }

    .demo-tip {
        background-color: #2d2d2d;
        color: #a0a0a0;
        border-bottom-color: #404040;
    }

    .demo-list-item {
        background-color: #1a1a1a;
        border-bottom-color: #404040;
        color: #ffffff;

        &:hover {
            background-color: #2d2d2d;
        }
    }
}

// 动画效果增强
@keyframes pullRefreshSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

// 高分辨率屏幕优化
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .pull-header {
        border-bottom-width: 0.5px;
    }

    .demo-list-item {
        border-bottom-width: 0.5px;
    }

    .demo-tip {
        border-bottom-width: 0.5px;
    }
}